package com.demo.gulimall.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author Chen Yuan
 * @create 2023-05-24  11:02
 */
@SpringBootApplication
@EnableFeignClients(basePackages = "com.demo.gulimall.order.feign")
@MapperScan("com.demo.gulimall.order.entity")
@EnableDiscoveryClient
//@EnableCaching // 开启 Spring Cache, 移到 RedisConfig 配置类上, 关于缓存的配置、注解统一管理
@EnableRabbit
@EnableAspectJAutoProxy(exposeProxy = true) // 开启 AspectJ 动态代理
public class MallOrderMain_8086 {
	public static void main(String[] args) {
		SpringApplication.run(MallOrderMain_8086.class, args);
	}
}
